import { ref } from 'vue'
export default function useSelectParentMenu() {
    const parentRef = ref<{ show: () => void }>()

    // 选择上级菜单
    const selectParent = () => {
        parentRef.value?.show()
    }

    return {
        parentRef,
        selectParent
    }
}
